package cn.iocoder.yudao.module.trade.api.delivery;

import cn.iocoder.yudao.module.trade.api.delivery.dto.DeliveryPickUpStoreDOVo;
import cn.iocoder.yudao.module.trade.convert.delivery.DeliveryPickUpStoreConvert;
import cn.iocoder.yudao.module.trade.dal.dataobject.delivery.DeliveryPickUpStoreDO;
import cn.iocoder.yudao.module.trade.dal.mysql.delivery.DeliveryPickUpStoreMapper;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;

@Service
@Validated
public class DeliveryPickUpStoreApiImpl implements DeliveryPickUpStoreApi{
    @Resource
    private DeliveryPickUpStoreMapper deliveryPickUpStoreMapper;

    @Override
    public DeliveryPickUpStoreDOVo selectById(Long nearbyStoreId) {
        DeliveryPickUpStoreDO deliveryPickUpStoreDO = deliveryPickUpStoreMapper.selectById(nearbyStoreId);
        return DeliveryPickUpStoreConvert.INSTANCE.convert1(deliveryPickUpStoreDO);
    }



}
